package com.cj.clientsdk;

import com.cj.clientsdk.client.ApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author cc
 * @date 2025-03-23 15:05
 **/
@Configuration
@ConfigurationProperties(prefix = "api.client")
@Data
@ComponentScan
public class ApiClientConfig {

//    private String baseUrl;
    private String accessKey;
    private String secretKey;

    @Bean
    ApiClient apiClient(){
        return new ApiClient(accessKey,secretKey);
    }


}
